#ifndef MESSAGEIMAGELABEL_H
#define MESSAGEIMAGELABEL_H

#include <QWidget>
#include <QPushButton>

class MessageImageLabel : public QWidget
{
    Q_OBJECT
public:
    explicit MessageImageLabel(const QString& fileId, const QByteArray& content, bool isLeft);

    void updateUI(const QString& fileId, const QByteArray& content);

    void paintEvent(QPaintEvent* event);
private:
    QPushButton* imageBtn;
    QString fileId;
    QByteArray content;
    bool isLeft;

signals:
};

#endif // MESSAGEIMAGELABEL_H
